package com.qfedu.service;

import com.qfedu.entity.AddressEntity;
import com.qfedu.mapper.AddressMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class AddressServiceImpl implements AddressService {

    @Autowired(required = false)
    AddressMapper addressMapper;
    //查询
    @Override
    public List<AddressEntity> queryaddress(AddressEntity ae) {
        return addressMapper.queryaddress(ae);
    }

    //添加
    @Override
    public boolean addaddress(AddressEntity ae) {
        return addressMapper.addaddress(ae);
    }

    //删除
    @Override
    public boolean deladdress(String aid) {
        return addressMapper.deladdress(aid);
    }

    //修改
    @Override
    public boolean updaddress(AddressEntity ae) {
        return addressMapper.updaddress(ae);
    }
    //查询单个
    public AddressEntity queryad(String aid){
        return addressMapper.queryad(aid);
    }

}
